package com.motong.gongdan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.motong.gongdan.vo.system.otherVo.MissionListVo;
import com.motong.gongdan.vo.system.otherVo.ProduceReportListVo;
import com.motong.gongdan.vo.system.otherVo.ScreenPlanWOVo;
import com.motong.gongdan.vo.system.stock.vo.StockBalanceVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;
import java.util.Map;

/**
 * @author:fff
 * @time:2022/5/23
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("screen_plan")
public class ScreenPlan extends PublicPo{
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    //名称
    @TableField("name")
    private String name;
    //0：工单 1：任务
    @TableField("type")
    private Integer type;
    //使用范围  用户ids
    @TableField("user_id")
    private String userId;
    @TableField("dep_id")
    private String depId;
    @TableField("user_id_name")
    private String userIdName;
    @TableField("second_group")
    private String secondGroup;
    //筛选条件json
    @TableField("screen_condition")
    private String screenCondition;

    @ApiModelProperty("创建用户(user表id)")
    @TableField("create_user")
    private Integer createUser;

    //工单
    @TableField(exist = false)
    private ScreenPlanWOVo workOrderSearchVo;

    //任务
    @TableField(exist = false)
    private MissionListVo missionSearchVo;

    //库存余额
    @TableField(exist = false)
    private StockBalanceVo stockBalanceSearchVo;

    @TableField(exist = false)
    private ProduceReportListVo prSearchVo;

    @TableField(exist = false)
    private Map<String,String> down;

    //自定义字段
    @TableField(exist = false)
    private CustomField customFieldVo;

    //状态
    @TableField(exist = false)
    private List<String> stateList;

    @ApiModelProperty("是否生效(0 否,1 是)")
    @TableField(exist = false)
    private Integer isValid;

}
